package org.dxy.middleware.dynamic.thread.pool.trigger.sdk;

import org.dxy.middleware.dynamic.thread.pool.application.view.ThreadPoolView;
import org.dxy.middleware.dynamic.thread.pool.domain.command.RefreshThreadPoolConfigCommand;
import org.dxy.middleware.dynamic.thread.pool.domain.model.ThreadPoolAggregate;

import java.util.List;

/**
 * @ description:
 * @ author: dxy
 * @ createTime: 2025/10/2 13:52
 */
public interface ThreadPoolConfigSDK {

    /**
     * @description  刷新线程池配置
     * @param 	command  刷新命令
     * @return
     * @date: 2025/10/3 20:53
     * @auther dxy
     */
    void refresh(RefreshThreadPoolConfigCommand command);

    /**
     * @description  获取所有线程池列表
     * @param
     * @return
     * @date: 2025/10/3 20:54
     * @auther dxy
     */
    List<ThreadPoolView> getThreadPoolViewList();

    /**
     * 根据应用名称和线程池名称获取线程池视图信息。
     * @param appName  应用名称
     * @param threadPoolName 线程池名称
     * @date: 2025/10/3 20:54
     * @auther dxy
     * @return
     */
    ThreadPoolView getThreadPoolView(String appName,String threadPoolName);
}
